package server.business.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName blood_bag_destory
 * @author Galaxy
 */
@TableName(value ="blood_bag_destory")
@Data
public class BloodBagDestory implements Serializable {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "gmt_create", fill = FieldFill.INSERT) // 创建注解
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE) // 更新注解
    private Date gmtModified;

    /**
     * 销毁编号
     */
    @TableField(value = "blood_destory_id")
    private String bloodDestoryId;



    /**
     * 回收的空血袋编号
     */
    @TableField(value = "blood_bag_number")
    private String bloodBagNumber;

    /**
     * 销毁日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "destory_date",fill = FieldFill.INSERT_UPDATE)
    private Date destoryDate;

    /**
     * 销毁人
     */
    @TableField(value = "destory_people")
    private String destoryPeople;

    /**
     * 销毁方式
     */
    @TableField(value = "destory_way")
    private String destoryWay;

    /**
     * 销毁人工号
     */
    @TableField(value = "destory_people_number")
    private String destoryPeopleNumber;

    /**
     * 逻辑删除
     */
    @TableField(value = "is_deleted")
    @TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = -4490300065735977519L;
}